<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>mrtc demo</title>
    <style>
        .div {
            width: 480px;
            height: 270px;
            margin: 20px;
            background: red;
        }
    </style>
</head>
<body>
    <div id="preview" class="div"></div>
    <div id="player" class="div"></div>
    <script src="//static.mudu.tv/static/mrtc-web-sdk/latest/mrtc-web-sdk.js"></script>
    <script>
        var previewDom = document.getElementById('preview')
        var playerDom = document.getElementById('player')

        var publish = Mrtc.setup(previewDom)
        publish.previewCamera('mrtc://hw-mrtc.myun.tv/36339512/0')
        publish.publishCamera('mrtc://hw-mrtc.myun.tv/36339512/0')

        var play = Mrtc.setup(playerDom)
        play.play('mrtc://hw-mrtc.myun.tv/36339512/0')
    </script>
</body>
</html>